package com.qibao.toolkit.exception.strategy.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author wangcheng
 * @version $Id: ExceptionProperties.java, v0.1 2018/9/26 10:24 wangcheng Exp $$
 */
@ConfigurationProperties(prefix = "exception.default.handle")
public class ExceptionProperties {

    private boolean enable = false;

    /**
     * 当屏蔽了默认的异常信息后，提供的返回给前端友好的信息
     */
    private String errorMessage = "网络异常";

    /**
     * 是否打印堆栈信息
     */
    private boolean printStackTrace = true;
    /**
     * qibao package
     */
    private String bbdPackage = "com.qibao";

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public boolean getPrintStackTrace() {
        return printStackTrace;
    }

    public void setPrintStackTrace(boolean printStackTrace) {
        this.printStackTrace = printStackTrace;
    }

    public boolean getEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getBbdPackage() {
        return bbdPackage;
    }

    public void setBbdPackage(String bbdPackage) {
        this.bbdPackage = bbdPackage;
    }
}
